experimenting with linear search