Commit-6: Methodized error checking. Implemented parseHours method.