In the figure below, two lines intersect at point O, forming four angles. The angles in the intersection are labeled as follows: angle AOB, angle BOC, angle COD, and angle DOA. If angle AOB measures 40 degrees, what is the measure of angle COD?
Remember that when two lines intersect, opposite angles are equal.