To supplement the link in Reply #2, there is a simple user-input example in Planning and Implementing a Program
...R