James Fergusson — Scottish judge and legal writer