fixed inheritance examples
some corrections
made examples a bit better