added tree and point classes