Added a useful function, as well as a transcript

The transcript is of the infinite loop.