example of visibility and inheritance added