Code for ch 18