add posts model and controller