adding ex 16 and 17 foreign key and create table with data type and references etc