edited Person3.java

implemented ‘calc’ method