creates post model