Chapter 10: simple gold implementation.