he had not been a favourite of the teachers in school , he was a bit of a rogue , but he graduated from school with good marks , particularly in the exact sciences , of which he had a very strong grasp .