Final version of trigger for lab 4 part 6