Began creating functions to generate plots