Coffee machine example implemented in ImpactJS