added script to parse input file, also chanaged assignment1 accoringly