Question: Error, bad index into Vector

Dear all

I tried to redo the same steps as presented in 
https://www.youtube.com/watch?v=l4Y3iQrPBa8
using Maple 

BUT, I  have an error, 

                               Error, (in assembly) bad index into Vector
I hope find the error in maple code

code1.mw

thank you 

Please Wait...