Set up initial matrices