adding methods to print, search, and search and remove