Cups logic