Implement virtual functions Number::add, etc.

Polish the code a bit.