Singleton and Template exercises