Add serial object to class