implemented the mul method