add interfeis Serializable for Bace class