Add .gitignore for class files.