Completed Person 2 code