Adds intended functionalty.

Run the example by performing `npm run example` to see the result of how
this library works.