Updated class to use "protected" instead of "private" access modifier.