Worked on some chapter 1 exercises