Made Quantity.value a template.