Demo code for self referential relations