solution code for Kaggle competitions