Implemented subscripts for ios 5