Modify struct People to class because we need use member function.