Program is singleton, and added a scope class to nest memory pools