added factory for post model