The books were first published in 1621 as `` Mr. William Shakespare 's Comedies , Histories and Tragedies '' and contain 16 of the 17 plays that he wrote during his lifetime ( but omit all of his poems ) .