added post controller class