Adding service class and json data