problem 5

and remove a code duplication in arrays