added change-directory method