problem1,2,6 is done.