A solution to T4 Kaggle contest: http://inclass.kaggle.com/c/model-t4