adding lifecycle demo