alice for affine functions