animate_decay.py example code is less complicated