4-bit trap functions' example