How does compressing files work