2 monster moto shield Vnh2sp30, 3 dcmotors and 1 arduino uno

Hi
I want to control 3 dc motors with monster moto shield and I know that this shield could be attached by 2 dc motors so is it possible to connect two shields with one Arduino? and how I should write the code for this purpose?

any idea?