finishing up chapter 5 - exercises