Comment by BobbyJo
I like to think of it completely differently: Functions are where you hide things, Classes are where you expose things.
Functions to me are more about scoping things down than about performing logic. The whole program is about performing logic.