adding tree implemetnation to eventually pretty print the defined actors