Relationships among perceived learning, challenge and affect in a clinical context