New example code for Post object