add rake to Gemfile
refactoring