Code completion for Chapter 5