added currying and reduce example