re-arranged data and sample code in titanic project