When the body is in the anatomical position, flexion and extension occur in which of the following planes?