Solution for kaggle.com problems