Adjust coding style in examples