Implement my math class
Wrote code for Problem 12(http://projecteuler.net/problem=12)