he was erics mathematics teacher , taking the top set in that subject , but as he had a free period , he had offered to take the class for the young teacher who currently had her leg in plaster after an unfortunate fall from a mountain bike whilst racing round grizedale forests tracks .