How to use singleton