solved exercises up to chapter 7.4