Added construct-with-inheritance example.