// undefinedevaluate the following lines step by step by selecting an\n// expression and press CMD or Ctrl + d\n\n// Morphs have a name\ncar = $morph('Car');\nshow(car)\n\n// we can add methods to morphs\ncar.addScript(function drive() {\n this.moveBy(pt(10, 0))\n})\n\n// evaluate to move the car a bit\ncar.drive()\n\n// we enhance the drive method so that the car will not leave the visble bounds\ncar.addScript(function drive() {\n if (this.world().visibleBounds().containsRect(this.bounds()))\n this.moveBy(pt(10, 0))\n})\n\n// now we let the car drive alone\ncar.startStepping(60/*ms*/, 'drive')\n\n// stop it!\ncar.stopStepping()\n\n// Can you extend drive() so that the car turns when it reaches a border?