Integrating auth code is probably a good example of code you want to understand, rather than just seeing that it appears to work.