meanByClassHelper1 code amended.