implemented Dimension and Quantity