Hi there. Can you please format your code so it’s more readable? See this post on how to do that. It would also be helpful to get more info on what’s going wrong and what exactly you want help with. When you say it isn’t procedural as you expected it, what do you mean? What’s the desired output?
2 Likes