Inner classes as friends