Change private declarations to protected

Allowing extension of classes