Added examples for activity lifecycle