I have made a number of programs that illustrates the various issues in this exercise. They may appear on the slide that refers to this exercise at a later point in time