close code example