Title: Viability, Invariance and Applications