first version of vigenere working