Better coding style in examples