Update chapter-06.md code example

Make sure this code example runs as expected. Errors out otherwise (as `plus_one` will be unresolved)