made magnet.java package only