Generate constructors and implemets Serializable to DOTs