// Child 4: Follow Button Text var buttonText = new Text("Follow"); buttonText.setPosition(100, 170); buttonText.setColor("white"); buttonText.setTextAlign("center"); Add the child views to the parent , not directly to main .
main.add(avatar); // Avatar is now independent, not nested main.add(profileCard); The autograder checks the parent-child relationship. Avatar must belong to profileCard , not main . 2.3.9 nested views codehs
// Child 1: Profile Picture (Relative to parent's top-left) var avatar = new Circle(30); avatar.setPosition(100, 50); // Center of the card width (100) 50px down avatar.setColor("blue"); // Child 2: Username Label var userName = new Text("CodeHS_User"); userName.setPosition(100, 110); // Centered below avatar userName.setColor("black"); userName.setFont("16pt Arial"); userName.setTextAlign("center"); // Child 4: Follow Button Text var buttonText