an example of currying in ruby