he studied law while he was a teacher