Got tree sample working