path() method added