added average grades method