Trying to get tree sample working