add gitignore.
Completed Ex 1.2.