Remove unused code.
Define foldLeft method.