Add missing type. (#7)
Simplify division function a bit.