The implications and functions of just and unjust experiences in school