Solved Age Distribution in Ruby