Added tasks from chapters 8 and 9