Modifying the Person class to use properties.