Added some Affine functions

and instances