# Unit 4 - Lesson 6 - Level 7

**URL:** <https://forum.code.org/t/unit-4-lesson-6-level-7/40165>\
**Category:** CSA\
**Tags:** csa-unit-4\
**Created:** [December 3, 2024, 2:47pm UTC](https://forum.code.org/t/unit-4-lesson-6-level-7/40165 "2024-12-03T14:47:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlarocque](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tlarocque](https://forum.code.org/u/tlarocque)\
**Post date:** [December 3, 2024, 2:47pm UTC](https://forum.code.org/t/unit-4-lesson-6-level-7/40165/1 "2024-12-03T14:47:05Z")

</div>

The “Unique Colors” option for level 7 of lesson 6 requires students to use a nested if statement to make sure all of the colors are equal. Nested if statements are not taught until the following lesson. Is this intended?

---

<div class="post-metadata">

**Author:** ![tlarocque](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tlarocque](https://forum.code.org/u/tlarocque)\
**Post date:** [December 3, 2024, 3:04pm UTC](https://forum.code.org/t/unit-4-lesson-6-level-7/40165/2 "2024-12-03T15:04:53Z")

</div>

After reading a couple other, unrelated topics, I reviewed the lesson submitting my concerns.

---

<div class="post-metadata">

**Author:** ![jeff.rhodes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jeff.rhodes/32/7758_2.png) [@jeff.rhodes](https://forum.code.org/u/jeff.rhodes)\
**Post date:** [December 4, 2024, 6:28pm UTC](https://forum.code.org/t/unit-4-lesson-6-level-7/40165/3 "2024-12-04T18:28:30Z")

</div>

I am on this lesson currently and noticed that as well. Also, I swear instanceof has not been covered yet, did I miss something in a previous lesson?

---

<div class="post-metadata">

**Author:** ![sam\_stafford](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/sam_stafford/32/7651_2.png) [@sam\_stafford](https://forum.code.org/u/sam_stafford)\
**Post date:** [December 4, 2024, 11:51pm UTC](https://forum.code.org/t/unit-4-lesson-6-level-7/40165/4 "2024-12-04T23:51:29Z")

</div>

Hi @tlarocque,

Thank you for bringing your concerns to the forum and pointing this out. I agree with you, nested if’s are introduced in lesson 7, right after this lesson. I’m glad you reviewed the lesson. I will do the same and hopefully others that stumble across this will also. I think the more this is brought to the curriculum teams attention, the higher up the priority stack it will go.

@jeff.rhodes, its good to hear from you! At first glance I missed the _instanceof_ method. It is discussed in the lesson slides here:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/9/9653e063b23987cb1c5edb50ad40947499ac4af5.png)

I’m not sure if I’m oversimplifying it for my students, but I told them they can basically copy and paste lines 1 thru 8 of the overridden equals() method and beyond that they need to make an appropriate algorithm depending on how we will determine equality.

Best,  
-Sam
