example of class in oop - Search