create search and result classes