Created basic functionality of posts