Found and implemented prototype method for all posts