simple singleton class

This code represent how to implement a simple singleton class.