How to make a friendship tree