add selector
Merge pull request #9 from xiangli-cmu/master

add selector