Changing class properties visbility public->private