The third option seems like the best as far as following functional programming styles (less variables). Will update. Thanks!