Adding ch01.py version with what I think is a differential factor.