Implemented some rules
Added a studying about C++ inheritance