finished plot functions for part 7