Is It Really All Vanity? (Ecclesiastes 1:1-11)

The book of Ecclesiastes does not start with the greatest encouragement by telling us that life is all vanity.  This really does sound like some sort of skeptic who has given up on life.  However, this book is in our Bible, and I believe it should be in our Bible so it is doubtful that the author is a hopeless cynic. What are we missing if we think that this is just a hopeless book?  Why would we want to follow along with the preacher on his quest for wisdom?  What does this introduction to this sermon tell us about the preacher’s quest for wisdom?