Rewrite using core.match! cool