Add block constructor to allow adding methods without subclassing