move BaseQuantity class to hide constructor

move BaseQuantity class to hide constructor