A mass M attached to a spring oscillates with a period of 2 s. If the mass is increased by 2 kg