Michael's Titanic code