Removing dents from oil pan

I apologize for the stupid question, but I’m hitting the pan with the wood driven by the hammer?
No. Put the pan flat on the floor and come in from the inside with the piece of wood and smack the end of the wood with the hammer.