First draft of compressor model (not tested yet)