changes encapsulation properties in class DinnerParty