Cannot access 'B': it is private in 'A'