explanation code moved out of code example