Object oriented programming with C++