text: #include "customer.h"
  
  //customer.cpp
  
  void Customer::add_account(BankAccount act)
  {
  	total_balance = total_balance + act.get_balance();
  	accounts.push_back(act);
  }
  
  ostream &  operator << (ostream & out, const Customer & c)
  {
  	out << "Customer accounts: \n";
  	for (auto act : c.accounts)
  	{
  		out << act;
  	}
  
  	out << "\n Total Balance: " << c.total_balance;
  	
  	
  	return out;
  }