first working attempt with typeahead