First, look at
Assignment #27 on LTLYM