added 'implements Serializable' to all classes needed