Adding code snippet