changed idea to something that will fit the specks of the assignment better, and added an alert.