What is the purpose of Cantos 26-28 of Dante's Inferno?

http://www.sparknotes.com/poetry/inferno/section10.rhtml