ListTester is not permitted to access the private section of class List. Make it a friend of class List.