exercises 23.1, testing with the mouse cursur