changes to PostController, hand writing code

experiment hand writing code instead of generating it