plots were made in R as per the course project