Solved exercises from 04_01 till 04_16 from chapter 4