Chapter 04 examples. Hmmm, I think... minor improvements to deallocate memory.