Chap4 code

Here are my posts.