array should be of type(solution)