Pretty tree printing, and a sum example