Revert "Revert "add class Compress""

This reverts commit b65bf508025cb181bb615a142d4bc48dcd50f750.