completed the calc() for Person1.java