Using one’s head

This idiom or expression has to do with:

Using one’s brain.
Thinking logically.

A. I hear you’re going back to school again. I’m glad you’re finally using your head!
B. Yeah and I’m getting a headache, too!