adding sum method to array.rb for access wherever gem is installed