Updated 'Contact' and 'TextMessage' to implement Serializable.