Added public, protected and private inheritance example