created methods to get averages of data for plants