started creating the matrices