added solution to the Encryption problem