Simple Ruby search program for practice