Redesigned framework for EnigmaMachine