instantiate Main class