Implemented class average calculation functionality and fixed float precision formatting. Corrected test case formatting