1. implement server side code for news