fixed gitignore
implemented first function