Example 3:
As example 2, except that the rect method is added to the JRoboTest class instead of to the JRobo class. Notice that the JRobo instance must be passed to rect now.