Finished part1 with error checking!
-Frank Dye