added example file for singleton design pattern