Implemented calc() method for Person5.java.