added a constructor for Person class