Generate people through a function