Refactored people_controller