added cpp snippets