create new DinnerParty class to encapsulate parse function