upgraded fields to a classmethod