adding Main class