The primary outcome was change in pretest and posttest scores among residents in an intervention group ( those who received text messages ) as compared to a control group ( those who did not receive the text messages ) .