completed exercise 15, two rectangles inside, learnt XOR operator