checked dragon.rb by Rubocop