Class MEGA implemented