Chapter 04 Solution and Code.