add function foo and modify .gitignore