implemented coffeemachine partially