@maptree: template pattern match demo