Code for Retrofit data analysis