Create private and protectec methods.