Added assertions
Added >> operator and tests
Implemented [] operator and tests