Let DatePair and Task implement java.io.Serializable