*
*/
public class ChainOfResponsibility {
public static void main(String[] args) {
// I am keeping Circle in the last in the chain so starting from Circle
Area circle = new Circle();
Area triangle = new Triangle(circle);
Area rectangle = new Rectangle(triangle);
Area square = new Square(rectangle);
for (String shape : listOfShapes()) {
square.findArea(shape);
}
}