working lucky.rb, passing all tests