public static function createAccount($arguments)
 {
     $hardCode = array("profileID", "ssn");
     $parts = GenericInput::stripInput($arguments[0], $hardCode);
     //print_r($parts[0].'<br>'.$parts[1]);
     $num = intval($parts[0]);
     $parts[0] = $num;
     //print_r(($parts[0]+90).'<br>'.$parts[1]);
     if ($parts[0] < 0) {
         print_r("Error. accountID cannot be smaller or equal to 0<br>");
     } else {
         if ($parts[0] > 999999999) {
             print_r("Error. accountID cannot be that large<br>");
         } else {
             $account = AccountsDB::getAccountsBy('accountID', $parts[0]);
         }
     }
     // print_r($parts[1].'<br>'.$parts[2]);
     if (is_null($account[0])) {
         $param = array();
         $param['accountID'] = $parts[0];
         $param['SSN'] = intval($parts[2]);
         //     print_r(($parts[0]).'*<br>**'.$parts[1].'<br>***'.$parts[2]);
         $ProfileDB = ProfilesDB::getProfileBy('profileID', intval($parts[1]));
         if (!is_null($ProfileDB)) {
             //    print_r($account[0]->getProfileID()."***".$account[0]->getAccountID());
             //      if (is_null($account[0]->getProfileID())){
             $param['profileID'] = $ProfileDB->getProfileID();
             $param['SSN'] = $ProfileDB->getSSN();
             $account = new Account($param);
             AccountsDB::addAccount($account);
             //      }else{
             //              print_r("Error. Bank Account already has owner");
             //      }
         } else {
             //print_r( ($param['SSN']+3).'+<br>');
             $ProfileDB = ProfilesDB::getProfileBy('SSN', $param['SSN']);
             // 	print_r($ProfileDB->getProfileID().'&&<br>');
             if (is_null($ProfileDB)) {
                 $account = new Account($param);
                 //    print_r( $account->getSSN().'+<br>');
                 AccountsDB::addAccountNoOwner($account);
             } else {
                 print_r("ERROR. Profile with that SSN already exists");
             }
         }
     } else {
         print_r("Error. This Bank Account is already created<br>");
     }
 }