Added search method to main class and to file driver