Class Diagram For Generating And Detection Of The Codes