Chapter8 : (218) Replace Type Code with Class