A small block of mass m resting at the bottom of a hemispherical cup of radius R is displaced a little and released. Determine the period of oscillations of the block, assuming the cup to be smooth and fixed rigidly to the table on which it rests. How will period change if the cup is free to move on the table, it is smooth and its mass is M?