Add printing functionality for a set and instance