Completed Chapter 4 samples