implement some failure graphs for exercise 4