commiting duplicate class matrix script so I can recover when it gets messed up