1module CoffeeMachine 2{ 3 function startCoffeePrepration() 4 { 5 //do nothing 6 } 7 8 function drinkCoffee(charstring coffeeType) 9 runs on CoffeeDrinkerComponentType 10 { 11 //drinking coffee 12 } 13 14 function getCoffee() runs on CoffeeDrinkerComponentType 15 return template Coffee 16 { 17 return coffee("espresso") 18 } 19 20 function boilWater() return Water 21 { 22 return valueof(CleanWater{}) 23 } 24} 25