Added test calculation logic
Grade calculation code added