removed System.out
made a lot serializable.