In Segment 779, note that the definition of the Weight class, like all class definitions, carries an additional argument, marked by category:, which specifies the category to which the class belongs.
Weight
category: