Encapsulation of multiplication logic