package P;

import java.util.List;

public class A3AggregationCoffee extends B3AggregationCoffee {
	
	protected List<B3AggregationCoffeeIngredion> ingredions;
	
	protected float coffeePriceFactor = 0f;
	
	public A3AggregationCoffee(List<B3AggregationCoffeeIngredion> ingredions, float coffeePriceFactor) {
		this.ingredions = ingredions;
		this.coffeePriceFactor = coffeePriceFactor;
	}
	
	public float coffeePrice() {
		float cost = 0f;
		
		for(B3AggregationCoffeeIngredion ingredion : ingredions) {
			cost += ingredion.getPrice();
		}
		
		return cost * coffeePriceFactor;
	}

}

@@ -390,28 +390,23 @@
 %09public 
-float coffee
+int get
 Price() 
@@ -543,14 +543,26 @@
 urn 
+(int)(
 cost *
+ (1f +
  cof
@@ -571,20 +571,248 @@
 ePriceFactor
+));%0A%09%7D%0A%09%0A%09public String getIngreedions() %7B%0A%09%09String ingredionList = %22%22;%0A%09%09%0A%09%09for(B3AggregationCoffeeIngredion ingredion : ingredions) %7B%0A%09%09%09ingredionList += String.format(%22%25s %22, ingredion.getName());%0A%09%09%7D%0A%09%09%0A%09%09return ingredionList
 ;%0A%09%7D%0A%0A%7D%0A

Add coffee ingredions