Code encapsulate dose[i].amount.grams