Assignment 5: Error Detection and Correction Solution