finished first exercises of chapters 1 and 2