Moved post_to_twitter method to become an instance method of the Post class.