solutions to array chapter