Assignment 4: Compression (solo) Solution