shonk:Center of Mass (source code and explanation)