Constructed dependencies tree and printout function