3.11 Implement product, sum and length in terms of foldLeft