Create may_edit_blogpost function.
Change class name to BlogPostData(camelcase) and add blog id attribute to the class.