Added Gson singleton method to MainActivity.