successfully wrote a matrix generator woop