I got the idea from a much more complicated version that ericr showed to me that he made on the next version of Scratch (2.0) when I was at M. I. T.