Effect of gravity on objects of different masses