Scratch to Corona Conversion

Hello all

Ive taught myself the basics of several languages by converting some simple projects from the easy language that I started with (Scratch) to the language I was learning at the time.

This has helped me significantly.

Ive done the same with corona but hit a wall with this seemingly very simple project:

https://scratch.mit.edu/projects/11641125

Wondering if someone could convert it for me so I can study it or at least guide me to some educational material that can help me.

I already figured out how to draw with onPrimaryButtonDown and touch event listeners

but dont know where to go from there.

any help will be appreciated

Thanks!