added solve-encoder.rb