You can use the AI Classic blocks as an example to code this in AI2. Here are two places that shows the classic blocks:
or
My suggestion: 1 Try some blocks
2 If you get stuck in translating AI blocks to AI2 blocks, return here and ask a specific question
3 When you are finished, rejoice, return here and post either images or the aia of your finished translation.
Good luck.
Regards,
Steve