import jan.*; import java.awt.*; class Rectangle { // creates a class Rectangle int x; // with variables for coordinates, size, and color int y; int height; int width; Color color; } public class A2P2 extends Biotope implements Executable { Rectangle rectangles[]; // creates array of type Rectangle int i; public static void main (String arguments []) {main ("A2P2", "mode=input,draw");} int xMax=350; // boundaries of the screen int yMax=350; public void initialize () { addDataLine ("3"); message("Enter the number of rectangles"); message("and click to rotate"); } public void execute () { setOrigin(xMax/2,yMax/2); // places origin in middle initGecko(xMax/2,yMax,90); setColor(Biotope.tail, transparent); setAlignment(Biotope.center); i=readInteger(); rectangles=new Rectangle[i]; for (int j=0;j