implemented associations and id's