Ritly assignment

This is as far as I got. Not far, I'm afraid. It's a total mess.
M