Basic code for coffeeMachine