new example based on sugar function 'clamp'