Main class ends successfully