Fixing rms (again), adding last two functions to example.py.