Chapter1: fixed bug with insufficient conditions in solution 1-22