Version of prettify index, just like the one Startup Engineering course gave us