error checking

error checking in Person1.java