Add support for negative numbers and modulus.

Exercise 4-3.