update grid examples with code snippet