practice mirror array method