Code refactored with array uploaded to git