implementing Quantity further