Simple logical indexing example