math class with multiply