start 1-4 detect xor cipher and refactored 1-3 to reuse code in 1-4