added program

added program which prints whole file and then prints first 3 lines