Refactor the test code in ch03
Add ch04/ex01