Work on the containing function, problems with negative indices