implementing favorite management.