Executing commands in the REPL

The following recipe shows different ways that the REPL can be used.