package Ġcom . github . y man iz 0 9 . mv v mb as ics . ui . quotes Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . github . y man iz 0 9 . mv v mb as ics . data . Quote Ċ import Ġcom . github . y man iz 0 9 . mv v mb as ics . data . Quote Repository Ċ Ċ // ĠQuote Repository Ġdependency Ġwill Ġagain Ġbe Ġpassed Ġin Ġthe Ċ // Ġconstructor Ġusing Ġdependency Ġinjection Ċ class ĠQu otes ViewModel ( private Ġval Ġquote Repository : ĠQuote Repository ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġfun Ġget Quotes () Ġ= Ġquote Repository . get Quotes () ĊĊĠĠĠ Ġfun Ġadd Quote ( quote : ĠQuote ) Ġ= Ġquote Repository . add Quote ( quote ) Ċ }