added the ER model