Describir: Programming of refractive functions