Coding the exit: the basics