finish chapter2.tdd.js