Add sample to show how to use curried functions