input: Write a function to implement the BankAccount class in Python, which initializes with a name and a balance, allows for deposits and withdrawals, and provides a method to retrieve the account balance. The withdraw method should return True if the withdrawal is successful and False if there are insufficient funds. 
  assert BankAccount("John", 1000).get_balance() == 1000
  assert BankAccount("Jane", 500).deposit(500) == 1000
  assert BankAccount("Alice", 200).withdraw(300) == False
  assert BankAccount("Bob", 1500).withdraw(1000) == True
  assert BankAccount("Eve", 750).get_balance() == 750
output: class BankAccount:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
          return self.balance
  
      def withdraw(self, amount):
          if amount > self.balance:
              return False
          self.balance -= amount
          return True
  
      def get_balance(self):
          return self.balance