function add now returns pointer of People