Replace private visibility with protected