made the application more generic so it can be applied to every csv file