Chapter 9: Singleton pattern implementation example.