Fixed private members in basic classes

Fixed problems with private members, making them protected