My code to implement project 1 in Exploratory Data class