update
first implementation of operator[]