Implementation of subscript