Singleton

Add Singleton pattern with test.