chapter7 practice code