he thought among other law teachings medicine and mathematics