Singletons tests
Implementation of Hungry function

Based on TAPL, chapter 20.