added code snippets for each post