putting in all the figures for problem2