Create adaptive_coding.py