Code to generate plots for first 5 questions