 let alphaUpperCount = alphaUpper.characters.count
 
 let input = "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
-var shiftValue = 5
+let shiftValue = 8
 var encrypted = ""
 var decrypted = ""
 var encrypting = true

    let text = encrypting ? input : encrypted
    for character in text.characters {
        let string = String(character)
        
        let alpha: String
        let alphaCount: Int
        if alphaLower.containsString(string) {
            alpha = alphaLower
        } else if alphaUpper.containsString(string) {
            alpha = alphaUpper
        } else {
            encrypting ? encrypted.appendContentsOf(string) : decrypted.appendContentsOf(string)
            continue
        }
        alphaCount = alpha.characters.count
        
        let found = alpha.rangeOfString(string)!
        let distance: Int
        var advancedBy: Int

                advancedBy = alphaCount - -advancedBy
            }
        }

        let append = alpha.substringWithRange(alpha.startIndex.advancedBy(advancedBy)..<alpha.startIndex.advancedBy(advancedBy + 1))
        encrypting ? encrypted.appendContentsOf(append) : decrypted.appendContentsOf(append)
    }
