Use spaces for indentation in lib/toc.rb
Access item attributes using #[], not by accessing #attributes