Update block definition

The block definition code listed doesn't work properly. This does.
Merge pull request #16 from johngallagher/patch-1

Update block definition