Add example project and refactor with search type