On the functions of stereotypes and prejudice