main skeleton of the program written