Updated singleton example