Extracted dictionary class from vigenere_cipher.