plots 1-3
corrected & commented