added plaintext copy of code