added Main class