Worked through chapter 2