doreldecay.py

This is what I've got so far.