Make Weight-related functions

Two inline functions: getWeight, getLength