I think the anonymous function is easier to read personall, but there's nothing actually wrong with this