plots for first problem