singleton design pattern is grouped in a package and the code is improved