Lifespan psychology: theory and application to intellectual functioning.