Updated Person1.java to include calc method