Added average grade class, unsure why average grade is still undefined