Refactored to reflect intention to have classes store irrational numbers.