tried to implement searching, ran into issues with compareTo