import java.util.ArrayList;

class ExtendedArrayList extends java.util.ArrayList {

    function demo() { // Newly added method
      return 42;
    }

    //TODO overriding/super calls
//    function add (e) : boolean { // Overwritten method
//        print("Element " +e + " added to array list" );
//        super.add(e);
//    }

}