finished off 4 array problems