Updated example for group_swap