Singleton Pattern

Completed the singleton pattern and the example