A model for measuring student persistence through collaborative learning