Consider a very (infinitesimally!) thin but massive rod, length L (total nass M), centered around the origin, sitting along the x-axis. (So the left end is at (-L/2,....)