Assignment 8
13.7 (re-work 4.8 and 4.9 first).