title: Add class after 10 seconds
body: <p>I have a div where when I click it, it adds a class of 'playing'. Then, after 10 seconds, I want to add a class of 'finished'.</p>
  
  <p>I have this code, but how do I time it so after 10 seconds, it adds the class of finsihed?</p>
  
  <pre><code>  $('.albums img').on('click',function(){
      $(this).addClass('playing');
    });
  </code></pre>
  
  <p>Any help is appreciated! </p>
  
  <hr>
  
  <p><em>Thanks a ton everyone. I used this question to show ~30 students at <a href="http://hackeryou.com" rel="nofollow">HackerYou</a> how to use stackoverflow to get top notch help from the community.</em></p>