Fixed the post method instantiation and example code