added array helper and badgers solution