Finishing up homework for chapter 3. ;-)