Implemented select-method.
Merge pull request #2 from kaspernj/kj/select_method_impl

Implemented select-method.