Integration step 2 - plaintext working