(refactor) Updated to use FromFn
(refactor) Changed name of example file
Merge pull request #15 from theptrk/refactor/useFromFnWrapper

(refactor) Use from fn wrapper.