You may wish to research singletons.