Updating P1 to throw a ParseException instead of a simple println.