better naming for returned function, extension -> extendedFunction
Merge pull request #5 from ysadka/patch-1

better naming for returned function, extension -> extendedFunction