Add [Serializable] to all the classes.