adding singleton design pattern code to creationalDesignPattern folder