Updated toString method in Person class