Where is there a ground-up tutorial on Sage rings? I've come across them but the docs are spotty or high level. Sometimes they cause problems but I'm not sure why. A Python integer will fail in a simple calculation but work when cast to a Sage ring integer but I have no idea why.