# Unit 3 Lesson 11 bubble 11

**URL:** <https://forum.code.org/t/unit-3-lesson-11-bubble-11/31758>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3\
**Created:** [November 21, 2019, 1:29pm UTC](https://forum.code.org/t/unit-3-lesson-11-bubble-11/31758 "2019-11-21T13:29:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauri.novacek](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@lauri.novacek](https://forum.code.org/u/lauri.novacek)\
**Post date:** [November 21, 2019, 1:29pm UTC](https://forum.code.org/t/unit-3-lesson-11-bubble-11/31758/1 "2019-11-21T13:29:14Z")

</div>

This is my 2nd year teaching CS Discoveries and I use the exemplars to help but really want to understand why the following code make the pear stop growing? I get the set.animation to change to a pear, not how to make it stop growing. Thanks in advance!!

if (fruit.scale \> 2) {  
fruit.setAnimation(“pear”);  
} else {  
fruit.scale = fruit.scale + 0.01;  
}

---

<div class="post-metadata">

**Author:** ![karenma](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/karenma/32/4924_2.png) [@karenma](https://forum.code.org/u/karenma)\
**Post date:** [November 21, 2019, 6:38pm UTC](https://forum.code.org/t/unit-3-lesson-11-bubble-11/31758/2 "2019-11-21T18:38:54Z")

</div>

fruit.scale = fruit.scale + 0.01;  
if (fruit.scale \> 2) {  
fruit.setAnimation(“pear”);  
fruit.scale = fruit.scale - 0.01;  
}  
This is the code that I used to make the pear stop growing.

---

<div class="post-metadata">

**Author:** ![lauri.novacek](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@lauri.novacek](https://forum.code.org/u/lauri.novacek)\
**Post date:** [November 21, 2019, 8:06pm UTC](https://forum.code.org/t/unit-3-lesson-11-bubble-11/31758/3 "2019-11-21T20:06:12Z")

</div>

Awwww, that makes more sense and my students actually just put fruit scale = 2.1 in and it also stops pear from growing!!!

Thank you so much! Lauri
