Working on addPost - trying to adapt an example