My number guessing example code sounds like what you are looking for. You can download it by entering the key: 8E7Y33G4 Please give it a download, run, and read and let me know if you have questions.