Code to clean a data set