First refactor to playfair_cipher.rb