added in mouse location-based version of exercise 1