Added singleton pattern
Implemented singleton pattern