Started implementation of center of gravity calculator