Code for data mining assignments