Added a v3 of the sample app

Identical to v2
Cleaned up v3

Got rid of unused utility function.
Extracted out two functions from Block model’s initialize.