first cut at third branch exercise