update example for singleton