title: Class method doesn't return value
body: <p>I'm working through the MTIx 6.00.1x Intro to Computer Science class, and am having trouble creating class methods. Specifically, the 'remove' function within my 'Queue' class does not return the value as I'd expect.</p>
  
  <p>Here's context on the request:</p>
  
  <blockquote>
    <p>For this exercise, you will be coding your very first class, a Queue class. In your Queue class, you will need three methods:</p>
    
    <p><strong>init</strong>: initialize your Queue (think: how will you store the queue's elements? You'll need to initialize an appropriate object attribute in this method)</p>
    
    <p><strong>insert</strong>: inserts one element in your Queue</p>
    
    <p><strong>remove</strong>: removes (or 'pops') one element from your Queue and returns it. If the queue is empty, raises a ValueError.</p>
  </blockquote>
  
  <p>I've written the following code with a 'remove' method, but though the method's behavior correctly alters the array, it doesn't return the 'popped' value:</p>
  
  <pre><code>class Queue(object):
  
      def __init__(self):
          self.vals = []
  
      def insert(self, value):
          self.vals.append(value)
  
      def remove(self):
          try:
              self.vals.pop(0)
          except:
              raise ValueError()
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>