Added scope and did some refactoring
Added some studying with inherintance in CPP