side) {Р this.side = side;Р }Р @OverrideР public void howToColor() {Р System.out.println("Color all four sides");Р }Р @OverrideР public double getArea() {Р return side * side;Р }Р @OverrideР public double getPerimeter() {Р return 4 * side;Р }Р}Р08Рimport java.util.ArrayList;Рpublic class Exercise13_08 {Р public static void main(String[] args) {Р MyStack1 stack = new MyStack1();Р stack.push("S1");Р stack.push("S2");Р stack.push("S");Р MyStack1 stack2 = (MyStack1) (stack.clone());Р stack2.push("S1");Р stack2.push("S2");Р stack2.push("S");Р System.out.println(stack.getSize());Р System.out.println(stack2.getSize());Р }Р}Рclass MyStack1 implements Cloneable {Р private ArrayList<Object> list = new ArrayList<Object>();Р public boolean isEmpty() {Р return list.isEmpty();Р }Р public int getSize() {