make classes Serializable to avoid tomcat errors