Writer Nick Stoller has penned a deal with CBS to write a currently untitled comedy pilot.

The twenty-something ensemble comedy will follow a guy who gets his heart broken by his girlfriend and now has to work one cubicle away from her at an ad agency. It is loosely based on one of the writers real life experiences.

The writer will also produce and direct the pilot with help from producers Katherine Pope and Peter Chernin. This will be the network's second comedy pilot order after Jon Favreau's Tweaked. He is best known for his work on The Muppets and Forgetting Sarah Marshall.

This project is still in development and no production date has been set.