Adding singleton pattern example

Adding an example that illustrates the use of Singleton design
pattern.