package Ġcom . example . android dev challenge . view model Ċ Ċ import Ġandroidx . compose . runtime . mutable State ListOf Ċ import Ġandroidx . compose . runtime . mutable State Of Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . example . android dev challenge . stub data . Temperature Unit Ċ import Ġcom . example . android dev challenge . stub data . cities Ċ Ċ class ĠHome Screen ViewModel Ġ: ĠViewModel () Ġ{ ĊĠĠĠĠ Ġval Ġtemperature Unit Ġ= Ġmutable State Of ( Temperature Unit . CEL SI US ) ĊĠĠĠĠ Ġval Ġlist C ities Ġ= Ġmutable State ListOf ( cities [ 0 ]) ĊĠĠĠĠ Ġval Ġselected City Ġ= Ġmutable State Of ( 0 ) Ċ } Ċ