Look in the library in the Advanced Programming Section. There are two links to tutorials on singleton creation.