snippets of useful codes from quizzes