finished spawn function, but exampleScript is not quite right