added problem 3 and flowcharts for 1-3