Changed ValueOfQuantity to a abstract class

This was done to make it easer to add additional quantity systems.
Contributes to #9
Added ValueOfMass

Contributes to #9