Renamed code from posts to events to better reflect project