Use new Code and CodeSet classes to model codes.