Add sample for singleton pattern