Attempting to use square bracket notation