Coded the calc(string) method for Person1.java