 
 func connect(password: String?, network: String?) -> Result<NSAppleEventDescriptor, QCError> {
   return
-    (validatePassword(password) &&& validateNetwork(network))
-    .flatMap(createScript)
-    .flatMap(executeScript)
+    validatePassword(password) &&& validateNetwork(network)
+    >>- createScript
+    >>- executeScript
 }
 
 

func updatePassword(password: String?) -> Result<String, QCError> {
  return
    validatePassword(password)
    .flatMap(storePassword)
    .flatMap {_ in .Success("Password updated!") }
}

func validatePassword(password: String?) -> Result<String, QCError> {

import Foundation

enum QCError: ErrorType {
  case PasswordNotFound
