complete code and write-up for EDA