Completed challenge in chapter 6.