Sorts, finds functions by implementing the Person class