instantiate Main