Stroustrup was inspired to create C++ while working on his Ph.D. thesis at Bell Labs. He was looking for a way to add object-oriented programming capabilities to the C programming language, which was popular at the time.