Added Compactor and CompactorFactory classes.