finish grains.rb