finished auto complete adapter example