complete draft of Session 6: still to do: clean up homework definition and examples.