add center of gravity calculator