implemented a good plotting script for the average height