def moveTo(self, newPosition):
        """Simply puts the block on top of the stack numbered newPosition"""
        Block.moveTo(self, newPosition)
        # Now animate our movement
        height = 0
        for block in self.stack:
            if block is self: break
            else: height -= 1
        start = array(self.box.pos)
        end = array((newPosition-(self.stacks.blockCount/2), height, 0))
        # Move in 30 steps
        step = array((end - start) / 30.)
        for i in range(1,31):
            self.box.pos = start + (step * i)
            self.label.pos = start + (step * i) + array([0,0,1])
            rate(120)
        self.box.pos = end
        self.label.pos = end + array([0,0,1])
        print self.box.pos
Simply puts the block on top of the stack numbered newPosition
recipes/Python/361168_Vpython_example/recipe-361168.py