20141028: more progress on problem 3, will start problem 4 tonight