Completing challenge from chapter 8.