finish first 5 questions of chapter 5, add AutoTestUtils.java to facilitate auto unit test.