Altered the Color class to implement serializable.