Map out post class functions, create time ago string function for posts