Java Assignement1 for Algebra : Object Serialization