Added inner class for get data from server