Changing class properties from private to protected