added demo of servlet life cycle