use of singleton design pattern 2