I am wondering if there was a way to combine multiple methods into one using `Proc.new`, `lambda`, or another method.

Also there is something wrong with my code below.

```
def multiples(n,p)
  (n..p).each do |e|
  puts e if e%2 == 0 or e%3 == 0
  end
end

def summing(n)
  sum = 0
  n.each { |x| puts sum+=x }
end

```

It provides the correct answer when I test them individually like `multiples(2,43)` or `summing([2,6,5,4])`, but when I combine the two like `summing(multiples(0,10))`, I get the wrong answer.

If somebody could help me, that would be great.