machine hammer working principle