Challenge 2b

Another simple way to get this done is by using a graphical slider. Just change the variable's UI mode on the mBlock Stage.