Working solution for ArrayAddition.rb