Divorced parents can take a cue from Jennifer Garner and Ben Affleck on how to co-parent after splitting up.

Just because a relationship ends doesn’t mean you have to be done with that person once and for all, especially if there are kids involved. And no one understands that quite like Ben and Jen. The exes were recently spotted in Brentwood, CA celebrating the Fourth of July with their three kids: Violet, 11, Seraphina, 8, and Samuel, 5. Nothing says “amicable divorce” quite like spending a holiday together watching a parade.

MORE: Ben Affleck and Jennifer Garner Reunite to Take Their 3 Kids to Church

Ben has opened up about co-parenting with Jennifer in the past: “We do our best. We try our best… My areas of expertise with the kids [are] spotty at best,” he explained. “Not homework!”

jennifer garner kids 2

The actors decided to call it quits back in 2015, but it hasn’t been an easy road since they first announced their separation. A little past their 10th anniversary they announced that they were getting a divorce and rumors began swirling that Ben had been cheating with their nanny.

MORE: Ben Affleck Reflects on His Relationship With Jennifer Lopez — See What He Surprisingly Confessed!

“It was a real marriage,” Jennifer admitted to Vanity Fair in 2016. “It wasn’t for the cameras. And it was a huge priority for me to stay in it. And that did not work.”

ben affleck kids

She continued to explain that even though her marriage ultimately failed, she doesn’t regret her life with Ben.

MORE: Kate Beckinsale Reaches Out to Ben Affleck for Comfort Following Her Divorce

“I didn’t marry the big fat movie star; I married him,” she continued. “And I would go back and remake that decision. I ran down the beach to him, and I would again. You can’t have these three babies and so much of what we had. He’s the love of my life. What am I going to do about that? He’s the most brilliant person in any room, the most charismatic, the most generous. He’s just a complicated guy.”

We’re so happy these exes found a way to make it work!