dependency tree code
added dependency tree