Simple singleton pattern implementation