06/21/2011 10:45 am ET Updated Dec 06, 2017

Cameron Diaz & Justin Timberlake At 'Bad Teacher' Premiere (PHOTOS)

Cameron Diaz and Justin Timberlake premiered their raunchy new comedy 'Bad Teacher' in New York Monday night.

In the movie Cameron plays a slacker, foul-mouthed teacher who sets her sights on JT, and she told the Associated Press that she had no problems working with her real-life ex.

"We wanted the best person for the job, and Justin was that person," she said. "He's such a great comedian. He's proven himself over and over again."

See the former couple sharing a red carpet kiss here. 'Bad Teacher' opens Friday.