I would compare x and y coordinates for each of the classes. We then did this with a nested for loop. The first loop uses the first course class and the second loop iterates through our course HashMap. we compare x values and if they are the same (on the same day) we then checked the y values to see if they overlapped and if they did we changed the course color to red and added text.