input: Write a function to simulate a simple ATM machine using the Account and ATM classes. The function should have methods to create an account, deposit money, withdraw money, and check the balance. The function should return the balance when requested.
  
  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:
                  return account.balance
  
  assert ATM().printBalance("Alice") == None
  atm = ATM()
  atm.createAccount("Alice", 1000)
  assert atm.printBalance("Alice") == 1000
  atm.deposit("Alice", 500)
  assert atm.printBalance("Alice") == 1500
  atm.withdrawal("Alice", 300)
  assert atm.printBalance("Alice") == 1200
output: 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:
              return account.balance