Student team functioning and the effect on mathematical problem solving in a first-year engineering course