'Study prison' to keep students focused