Inherit from quantity