added multiply and add functions to be filled in