Woefully incomplete but 'good enough' implementation of `tree`.