completed ER model