moved compressor code to new class "Compressor"