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