Formatted Code in Person3.java
Implemented calc(input) method in Person3.java