seems to be working. moved People to inner class, added helper functions for people