added example for currying