Use a better idiom for list construction