adding a Main class