ruby way: sum