added table and relation classes;
created engine class