Code for Kaggle Titanic competition