Crypto square exercise | 2nd iteration