The copy method is idiomatically used with named parameters. In this case, I'd just go for `Bar(bar.name.toUpperCase)`