Add LifeCycle and LifeCycleState classes.