added post controller and model