Generalizing Environment.rb file