Added basic code for posts