completed extra tasks for chapter 6