Kerr Fry, The University of Edinburgh