Add #[] method