Added function to Campaign.rb that returns grouped ranges