title: Trying to create a checking account class but running into issues
body: <blockquote>
  <p>Write a class named “CheckingAccount” that contains the current
  balance of the account (an int) and the following methods:</p>
  <ul>
  <li><p>init - takes a “balance” parameter to initialize the data (balance)of the object. Remember, the method init is implemented as
  <code>___init__</code>.</p>
  </li>
  <li><p>withdraw - takes an input parameter “amount” and modifies the data by reducing the balance. If “amount” results in an overdraw,subtract
  an extra 20 dollars. This method should return the balance.</p>
  </li>
  <li><p>deposit - takes an input parameter “amount” and modifies the data by increasing the balance by “amount”.</p>
  </li>
  </ul>
  </blockquote>
  <p>I'm trying to do the above problem but I'm kind of lost and this is the best I've got so far (updated code today):</p>
  <pre><code># write your code here
  class CheckingAccount:
      balance = 0
      amount = 0
      
      def __init__(self, balance = 0):
          self.balance = balance
          
      def withdraw(self, amount = 0):
          if self.amount &gt; self.balance:
              self.balance -= 20
          else:
              self.balance -= 1
      def deposit(self, amount = 0):
          self.amount += amount
          return amount
          
  an = CheckingAccount(80)
  an.withdraw(40)
  print(&quot;Your old balance was {}. Your new balance is now {}.&quot;.format(an.balance))
  </code></pre>
  <p>I'm getting closer but my old balance shows as 79 instead of 80 and my new balance shows as 0 when I think I was expecting 40. I feel like I'm missing something.</p>