A simple code for guessing numbers