made object model to be used for DB