Add singleton method.
Merge pull request #1 from inamiy/singleton

Add singleton method.