Lauren Graham will guest-star alongside her ex-boyfriend Matthew Perry on his new CBS comedy, The Odd Couple.

Lauren Graham Joins 'The Odd Couple'

In a bit of meta casting, Graham will be playing Perry’s character Oscar Madison’s ex-wife in the modern retelling of Neil Simon’s 1965 play, reported Entertainment Weekly. As the story goes, Oscar and Gaby go through a rough divorce, but find a deep friendship and affection for one another following the end of their marriage. After the divorce, the laidback Oscar moves in with the ever-uptight Felix Unger, who will be played by Thomas Lennon (Night at the Museum, Reno 911!).

Graham and Perry, who dated after meeting in 2002, have previously worked together on Perry’s other sitcom efforts Studio 60 on the Sunset Strip and Go On. Graham, who is best known for playing single mom Lorelai Gilmore on Gilmore Girls, currently stars on Parenthood, which is in its last season.

In addition to Perry, Graham and Lennon, The Odd Couple will star Yvette Nicole Brown (Community), Wendell Pierce (The Michael J. Fox Show, Treme) and Lindsay Sloane (Weeds).

The Odd Couple is slated to premiere in 2015.