the cpp version of coffee machine