text: #include <iostream>
  #include <string>
  
  using namespace std;
  
  class Account{
  private:
      // attributes
      string name;
      double balance;
      
  public:
      // methods
      // declared inline
      void set_balance(double bal){
          balance = bal;
      }
      
      double get_balance(){
          return balance;
      }
      
      // methods will be declared
      // outside the class declaration
      void set_name(string n);
      string get_name();
      bool deposit(double amount);
      bool withdraw(double amount);
  };
  
  void Account::set_name(string n){
      name = n;
  }
  
  string Account::get_name(){
      return name;
  }
  
  bool Account::deposit(double amount){
      // if verify amount
      balance += amount;
      return true;
  }
  
  bool Account::withdraw(double amount){
      if (balance - amount >= 0){
          balance -= amount;
          return true;
      } else {
          return false;
      }
  }
  
  int main(int argc, char *argv[]) {
      Account bruce_account;
      bruce_account.set_name("Bruce's account");
      bruce_account.set_balance(1000.0);
      
      if (bruce_account.deposit(200.0)){
          cout << "Deposit OK" << endl;
      } else {
          cout << "Deposit Not allowed" << endl;
      }
      
      if (bruce_account.withdraw(500.0)){
          cout << "Withdraw OK" << endl;
      } else {
          cout << "Not sufficient funds" << endl;
      }
      
      if (bruce_account.withdraw(1500.0)){
          cout << "Withdraw OK" << endl;
      } else {
          cout << "Not sufficient funds" << endl;
      }
      
      return 0;
  }
  