Using Hamming Code To Detect Errors