Oooff… I had to fix your post as you didn’t properly format the posted code/info as dictated in the forum directions.
I suspect that you might wish to start off with much simpler examples to build up your experience before plunging into a much more advanced example like this.