example about life cycle of activity