The code in Listing 1 represents my attempt to implement the following requirement:
It can be shown that a passenger on a boat in a boathouse can be