finished project of chapter 5 & improve code quality in project2(chap3)