using extends and implements to get point for grade

使用继承和接口简化switch语句