added array solutions