Rewrite coffee_pin as a singleton