doing the silver task as a class
still following along: adding attributes to post
Integrating new Post class with index.erb
changing router to accomodate date in post URLs