Fixed use of operator[] and input ranges for front page example.