hw1 - added functionality to parse simple file, specified in hw1.pdf