added Problems 9 and 10; 10 requires optimizing