exercise 26.1, created a rectangle and shape reacts when mouse is pressed