completed the calc() method in Person1.java