Improving group functioning in solving realistic problems