P2:matrix D working
P2:matrix G working
P2:matrix G working