Grouping Codes Into A Limited Number Of Categories Specified