Add singleton pattern example