input: Write a function to design a Python program that simulates a simple ATM machine. The program should include an `Account` class with functions for depositing and withdrawing money, and an `ATM` class with functions for creating accounts, depositing, withdrawing, and printing account balances. Implement the classes and their methods as described below, then test the functionality with the given `assert` statements.
  
  
  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:
                  return account.balance
  
  # Test cases
  atm = ATM()
  atm.createAccount("John", 1000)
  assert atm.printBalance("John") == 1000
  
  atm.deposit("John", 200)
  assert atm.printBalance("John") == 1200
  
  atm.withdrawal("John", 300)
  assert atm.printBalance("John") == 900
  
  atm.createAccount("Jane", 500)
  assert atm.printBalance("Jane") == 500
  
  atm.deposit("Jane", 100)
  assert atm.printBalance("Jane") == 600
  
  atm.withdrawal("Jane", 200)
  assert atm.printBalance("Jane") == 400
  
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:
                  return account.balance