adding gitignore and another snippet