add a failure test for init
pass the init test
Move the product method next to sum method
refactor that extract the same logic in sum and product to foldRight