some refactoring in gradebook exercise