making titanic_model an abstract class