class with main