John Greenlees, Secondary teacher