finished all exercises from chapter 1