added code snippets to inital post