most of exercise 2 , for some reason won't plot