download this and take a look at the stage scripts for the blocks if these are familiar to you they are from netscratch