added scripts and plots 1-4