Implemented multiplication by many factors