Add Serializable attribute to all required classes