Simple example from Singleton Pattern in Java