A functional analytic approach to group therapy