update gitignore
nicer code for exercise 2