Solution to the "Seat your team members" problem.