moved vigenere code into main file