add IDs to Class to produce deterministic output