Moved code snippets to "src" folder