worked a bit on chapter 3