Added Magn.java