good example of how protected class attribute can be used to limit method access.