Some preliminary code for titanic data preparation