output added in mercury and new class added