package Ġmx . lu ix . my movies . use cases Ċ Ċ import Ġmx . lu ix . my movies . data . repository . Movies Repository Ċ import Ġmx . lu ix . my movies . domain . Movie Ċ Ċ class ĠToggle Movie Favorite ( private Ġval Ġmovies Repository : ĠMov ies Repository ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġinvoke ( movie : ĠMovie ): ĠMovie Ġ= Ġwith ( movie ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcopy ( favorite Ġ= Ġ! favorite ). also Ġ{ Ġmovies Repository . update ( it ) Ġ} ĊĠĠĠ Ġ} Ċ }