Updating Person class to have an apply method for construction.