add example for adding new fragment

I thought it'd be nice to have an example createFragment along with the update examples;  I had to figure it out from the source