exercise 9.2 (two tone gradient)