added examples for functions, blocks and classes