Another way to use a Map would be with the product name as the key and an object that contains the count and the cost as the value.