Add forking example

Alternative to #32 and fixes #3.

/cc @toin0u