changed gemfile according to book pdf