add .gitignore to ignore *.class
add Magazine.java