var EVI1 = new example (
  "Example V.1",
  "A <i>class</i> defines a grouping of variables (properties) and functions (methods) that are common to a certain type \
   of thing, for instance dogs, cars, balls, people, etcetera. A class is a blueprint for such things.<br />\
   Each <i>object</i> of a class gets its own copy of all the properties defined in the class.\
   For example, every object (instance) of a car class would have its own brand, color, type, speed, position, engine volume, etcetera.<br />\
   Methods are simply functions that an object can call. They are meant to relate to that specific object of a class.\
   For example, objects of a car class could have methods such as 'accelerate()' or 'brake()'.\
   Objects are often used to model real-world things in programming, e.g. balls.",
  "exampleVI1",
  "  // Construct object b of class 'Ball'.<BR />\
  Ball b;<BR />\
  b = new Ball(width/2, Height/2,<BR />\
               random(2.0), random(2.0),<BR />\
               10, 255);<BR />\
  <BR />\
  void draw() { <BR />\
    // Call the update method. <BR />\
    b.update(); <BR />\
    <BR />\
    // Bounce off the walls, if required. <BR />\
    if (b.left() < 0 || b.right() > width)<BR />\
      b.speedx *= -1; <BR />\
    if (b.top() < 0 || b.bottom() > height)<BR />\
      b.speedy *= -1; <BR />\
  }");

var EVI2 = new example (
  "Example V.2",
  "Classes are particularly useful when you want to use multiple objects of the same class. This example creates two objects of class <CODE>Ball</CODE>. Each of the objects has its own position, speed, size, bounciness and color.",
  "exampleVI2",
  "  // Declare two objects of class 'Ball'.<BR />\
  Ball b1, b2;<BR />\
  <BR />\
  void setup() {<BR />\
    // Construct objects with different settings.<BR />\
    b1 = new Ball(width/4, r1, 0.5, 0,<BR />\
                  bnc1, r1, 255);<BR />\
    b2 = new Ball(width/2, r2, -0.5, 0,<BR />\
                  bnc2, r2, 0);<BR />\
  }<BR />\
  <BR />\
  void draw() {<BR />\
    // Call the update method for both objects.<BR />\
    b1.update();<BR />\
    b2.update();<BR />\
  }");