added posts model and controller