first working version. very simple, basically just is able to do a text search.