Made models a tree. it doesn't do anything yet though, also it doesn't protect against circular parentship