Added multiply and add methods which do the encoding and decoding for me