begin code for generating student reports