privatized members, added example