Implemented factor multiplication