static and inheritance illustration