Implemented the pwd command