Replaced the private access modifier with protected