Exercises for chapter 6

Go go go!
There is no way you would write this code in the DPG on one line... right ?!