Beginner solution

Lua!