The string of a simple pendulum is replaced by a uniform rod of length L and mass M while the bob has a mass m. It is allowed to make small oscillations. Its time period is