Added error checking.
initial commit for data file to part 2