removed operator [][]
code for 6th lecture