completed ch 3 examples