The edgeDetector method
(Because the variable named display is an instance variable, the program would also work properly if the edgeDetector method were to return void.)