so this is what it becomes ``` override fun fe...
# getting-started
o
so this is what it becomes
Copy code
override fun fetchAndSaveFavorites(): Observable<List<FavoriteCars>> =
        carsService.getFavorites().map { response ->
            val favorites = response.map {
                FavoriteCars(listing_id = it.id)
            }

            database.favoritesDao().wipeTable()
            database.favoritesDao().insert(favorites)
            favorites
        }