Title: Stability Theory and the Existence of Periodic Solutions and Almost Periodic Solutions