finish ch6 6.2.1 and 6.2.2, next will be 6.2.3