added c++project with inheritance