Set up self-referential model