Add error checking for Project 03