refactor to support array-like behavior for selected elements
Merge pull request #5 from sutamatej/master

refactor to support array-like behavior for selected elements