input: Write a function to design a Python program that simulates a simple ATM machine. The program should include an `Account` class with methods for depositing and withdrawing money, and an `ATM` class to manage multiple accounts, including methods to create accounts, deposit money, withdraw money, and print the balance of an account.
  
  
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          self.balance -= amount
  
  class ATM:
      def __init__(self):
          self.accounts = []
  
      def createAccount(self, name, balance):
          account = Account(name, balance)
          self.accounts.append(account)
  
      def deposit(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.deposit(amount)
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
  
  assert ATM().accounts == []
  atm = ATM()
  atm.createAccount("Alice", 1000)
  atm.deposit("Alice", 500)
  atm.printBalance("Alice")
  assert atm.accounts[0].balance == 1500
  atm.withdrawal("Alice", 300)
  atm.printBalance("Alice")
  assert atm.accounts[0].balance == 1200
  
  
  from io import StringIO
  import sys
  
  capturedOutput = StringIO()
  sys.stdout = capturedOutput
  
  atm = ATM()
  atm.createAccount("Alice", 1000)
  atm.deposit("Alice", 500)
  atm.printBalance("Alice")
  sys.stdout = sys.__stdout__
  assert capturedOutput.getvalue() == "Alice  Balance:  1500\n"
  
output: 
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          self.balance -= amount
  
  class ATM:
      def __init__(self):
          self.accounts = []
  
      def createAccount(self, name, balance):
          account = Account(name, balance)
          self.accounts.append(account)
  
      def deposit(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.deposit(amount)
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
  