discussion code snippet