Step 3. Repeat the matrix