Actress Kat Dennings, who will next be seen on the big screen in Thor, has secured one of two leading roles in a new CBS pilot entitled Two Broke Girls.

Kat Dennings will play Max, a waitress who has been poor her whole life. She meets Caroline, a woman who was born into wealth but falls on hard times and takes a job at the same Brooklyn diner Max works at. The two become friends and try to form their own business, if they can come up with $250,000 in start-up cash.

Sex and the City 2 director Michael Patrick King and comedian Whitney Cummings co-wrote and will executive produce the pilot. The Caroline character has yet to be cast. A production schedule hasn't been revealed yet for the pilot.