Finished the chapter 4 challenge