chapter 5 exercises. mainly cleaning up specs