finished Q with arrays