Beginning on rework of entire class based on modular arithmetic.