Singleton pattern works, but without assignment