added new method `where` with tests