Added online flag, and testing 'getGrades()'