chapter6 dir commit