adding a main program