Program for part 1 and 2 is verified working with command line arguments