code snippet for blog