Passed all tests for select method