Simplified error checking; blank lines are allowed in lines 2 and 3