Here is one of my favourite scripts. With it, it’s possible to build an array of objects whose general behaviour is described using maps.