add .gitignore file & lagacy code