adds function curriedSum to exercises.js