wire up main method of the program