setCWD() method added