Refactoring and files added

Refactored number classes to override ToString rather than implement an
output property. Added a class of tests.