Added serialisable interface.
Added method to be used by the union.