added person class and logic