singleton type usage example