First lua solution