Example 4:
XJRobo with functions rect & move