add 'examples' array to each block for self-testing