Added exercises to ch4
Merge branch 'ch04' into dev_1.0