Hamming Code for Error Correction and Detection: Basics and Examples