added a snippet method to Article object