The Motivational Effects of the Classroom Environment in Facilitating Self-Regulated Learning