The danger of privates, and composition vs. inheritance