Made class order more deterministic avd added some printouts